#ifndef POWERRAMPPARAM_H
#define POWERRAMPPARAM_H

#include <QObject>

/**
 * @brief The PowerRampParam class
 * 功率斜坡参数
 */
class PowerRampParam
{
public:
    PowerRampParam(){}

    // Getter methods
    bool isEnabled() const { return mEnable; }
    uint startLevel() const { return mStartLevel; }
    uint endLevel() const { return mEndLevel; }
    double startLength() const { return mStartLength; }
    double endLength() const { return mEndLength; }

    // Setter methods
    void setEnabled(bool enable) { mEnable = enable; }
    void setStartLevel(uint level) { mStartLevel = level; }
    void setEndLevel(uint level) { mEndLevel = level; }
    void setStartLength(double length) { mStartLength = length; }
    void setEndLength(double length) { mEndLength = length; }
private:
    bool mEnable;           //功率斜坡是否启用
    uint mStartLevel;       //功率斜坡上升开始等级(功率比)
    uint mEndLevel;         //功率斜坡下降结束等级(功率比)
    double mStartLength;    //功率斜坡上升长度区间(mm)
    double mEndLength;      //功率斜坡下降长度区间(mm)
};

#endif // POWERRAMPPARAM_H
